package com.qfedu.sign.provider.controller;

import com.qfedu.sign.common.vo.R;
import com.qfedu.sign.provider.service.intf.SignService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;


@RestController
public class SignController {
    @Autowired
    private SignService signService;

    @PostMapping("/provider/sign/addsign.do")
    public R sign(@RequestParam int uid){
        return signService.sign(uid);
    }
    @GetMapping("/provider/sign/checksign.do")
    public R check(@RequestParam int uid){
        return signService.checkSign(uid);
    }
    @GetMapping("/provider/sign/signlist.do")
    public R list(@RequestParam int uid){
        return signService.queryUid(uid);
    }
}
